﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CargoStatus1.aspx.cs" Inherits="Views_CargoStatus" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>正贸仓储物流管理系统</title>
    <link href="../CSS/css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function showEdit(Lane, Line, Lcol, Lay,Hid) {
            if (document.getElementById('txtSLine').value == "THistory" || document.getElementById('txtSLcol').value =="") 
            {
                document.getElementById('txtSLine').value = Hid;
                document.getElementById('txtSLcol').value = Lcol;
            }
            else if(isNaN(document.getElementById("txtSLine").value) ==true ||isNaN(document.getElementById("txtSLcol").value) ==true)
            {
                alert('排或列要是数字！');
                return;
            }
            else if(document.getElementById('txtSLine').value != "" && document.getElementById('txtSLcol').value !==""&&document.getElementById('txtELine').value == "" || document.getElementById('txtELcol').value =="")
            {
                document.getElementById('txtELine').value = Hid;
                document.getElementById('txtELcol').value = Lcol;
            }
            else if(isNaN(document.getElementById("txtELine").value) ==true ||isNaN(document.getElementById("txtELcol").value) ==true)
            {
                alert('排或列要是数字！');
                return;
            }
            else
            {
                document.getElementById('txtELine').value = Hid;
                document.getElementById('txtELcol').value = Lcol;
            }
                        
        }
    </script>

    <script type="text/javascript">       
	function fPOSDlg(URL,Target,form)  //
	{
		showx = event.screenX - event.offsetX - 4 ; // + deltaX;
		showy = event.screenY - event.offsetY + 18; // + deltaY;
		retval = window.showModalDialog(URL, "", "dialogWidth:400px; dialogHeight:350px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;help:no;scrollbars:no;Resizable=no; ");
		
		if( retval != null )
		{
			var CompanyName = retval.split(",");
			document.form1.txtPos_ID.value = CompanyName[1];           //货位号ID
		}	
	}
    </script>

    <script type="text/javascript">
        window.onload=function(){
          var a = document.getElementById("loading");
          a.parentNode.removeChild(a);
        }
        document.write('<div id="loading" style="line-height:122px;"><table cellpadding="0" width="100%"><Tr><Td align="center" height="500" valign="middle"><img src="../Images/loading.gif"></td></tr></table></div>');
    </script>

    <script language="javascript">
       var _oldColor;   
       function SetNewColor(source)   
 {   
          _oldColor=source.style.backgroundColor;   
          source.style.backgroundColor='#FFFF00';   

       }
       function SetOldColor(source)   
 {   
         source.style.backgroundColor=_oldColor;   
       }
    </script>

    <script language="javascript">
       var _oldColor;   
       function SetNewColor1(source)   
 {   
          _oldColor=source.style.backgroundColor;   
          source.style.backgroundColor='#FFFFFF';   

       }
       function SetOldColor(source)   
 {   
         source.style.backgroundColor=_oldColor;   
       }
    </script>

    <style type="text/css">
        .style2
        {
            width: 300px;
            height:60px;
        }
        .style3
        {
            height: 60px;
        }
        .style4
        {
            height: 60px;
        }
        .style5
        {
            width: 10%;
        }
        .style6
        {
            width: 20%;
        }
    </style>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="SCM_Storage" runat="server">
        </asp:ScriptManager>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="height: 30px">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../Images/tab_03.gif); background-repeat: repeat-x;
                                width: 12px;">
                                &nbsp;
                            </td>
                            <td style="background-image: url(../Images/tab_05.gif); background-repeat: repeat-x;
                                height: 30px;">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 46%; vertical-align: middle;">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 5%; vertical-align: middle;">
                                                        <img src="../Images/tb.gif" width="16" height="16" />
                                                    </td>
                                                    <td style="width: 95%;">
                                                        <span>你当前的位置</span>：视图管理--货位状态视图
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16" style="background-image: url(../Images/tab_07.gif); height: 30px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../Images/tab_12.gif); width: 8px;">
                                &nbsp;
                            </td>
                            <td>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                            <tr style="height: 12px;">
                                                <td style="padding: 2px;">
                                                    <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                        bordercolorlight="#b5d6e6">
                                                        <tr>
                                                            <td style="padding-left: 2px;">
                                                                开始坐标：<asp:TextBox ID="txtSLine" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                <asp:TextBox ID="txtSLcol" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                结束坐标：<asp:TextBox ID="txtELine" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                <asp:TextBox ID="txtELcol" runat="server" Width="30px" Height="14px"></asp:TextBox>
                                                                <asp:Label ID="lblPos_ID" runat="server"></asp:Label>
                                                            </td>
                                                            <td valign="middle">
                                                                <asp:ImageButton ID="ibtnSelect" runat="server" ImageUrl="~/Images/Selected.gif"
                                                                    Width="65" OnClick="ibtnSelect_Click" />
                                                                <asp:ImageButton ID="ibtnReset" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                    Width="65" OnClick="ibtnReset_Click" />
                                                                <%--<asp:ImageButton ID="ibtn_Allout" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                    Width="65" OnClick="ibtnReset_Click" />
                                                                    <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                    Width="65" OnClick="ibtnReset_Click" />--%>
                                                            </td>
                                                            <td align="right" class="style5">
                                                                巷道选择：
                                                            </td>
                                                            <td style="padding-left: 2px;" class="style6">
                                                                <asp:DropDownList ID="ddlNo_Lane" runat="server" OnSelectedIndexChanged="ddlNo_Lane_SelectedIndexChanged"
                                                                    AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:UpdatePanel ID="UpdateP" runat="server" UpdateMode="Conditional">
                                                        <ContentTemplate>
                                                            <table cellpadding="0" cellspacing="0" width="100%" border="0" id="tab1">
                                                                <tr >
                                                                    <td style="padding: 2px;" class="style4">
                                                                        <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                                            bordercolorlight="#b5d6e6">
                                                                            <tr>
                                                                                <td class="style3">
                                                                                    <asp:DataList ID="dlistPos" runat="server" RepeatColumns="4" BorderWidth="0" 
                                                                                        Height="58px">
                                                                                        <ItemTemplate>
                                                                                            <asp:Button runat="server" ID="btn" Text='<%# Bind("ImgC") %>' Width="90" Height="20"
                                                                                                CommandArgument='<%# Bind("PosID") %>' CssClass="btn3_mouseout" onmouseover="this.className='btn3_mouseover'"
                                                                                                onmouseout="this.className='btn3_mouseout'" onmousedown="this.className='btn3_mousedown'"
                                                                                                onmouseup="this.className='btn3_mouseup'" OnClick="btn_Click" />
                                                                                        </ItemTemplate>
                                                                                    </asp:DataList>
                                                                                </td>
                                                                               <td align="center" class="style2" >
                                                                                   <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                                                                                     <%--<table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                                        <tr>
                                                                                            <td style="height: 25px;">
                                                                                                货位号：<asp:TextBox ID="txtPos_ID" runat="server" Text="0" Width="90"></asp:TextBox>
                                                                                                <input onclick="fPOSDlg('../../GroupDisc/PostList.aspx','Item',form1);return false;"
                                                                                                    src="../Images/fc.gif" style="border-right: 0px; border-top: 0px; border-left: 0px;
                                                                                                    width: 14px; border-bottom: 0px; height: 11px" type="image" />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:Button runat="server" ID="btnzhupan" Text="整出" Width="90" Height="40" CssClass="btn3_mouseout"
                                                                                                    onmouseover="this.className='btn3_mouseover'" onmouseout="this.className='btn3_mouseout'"
                                                                                                    onmousedown="this.className='btn3_mousedown'" onmouseup="this.className='btn3_mouseup'"
                                                                                                    OnClick="btnzhupan_Click" />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td style="padding-top: 5px;">
                                                                                                <asp:Button runat="server" ID="btnpandian" Text="盘点" Width="90" Height="40" CssClass="btn3_mouseout"
                                                                                                    onmouseover="this.className='btn3_mouseover'" onmouseout="this.className='btn3_mouseout'"
                                                                                                    onmousedown="this.className='btn3_mousedown'" onmouseup="this.className='btn3_mouseup'"
                                                                                                    OnClick="btnpandian_Click" />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:Label ID="Label1" runat="server"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>--%>
                                                                                </td>
                                                                                <%--<td align="right">
                                                                                    <table cellpadding="0" cellspacing="0" border="0" width="150">
                                                                                        <tr>
                                                                                            <td align="right" style="height: 40px;">
                                                                                                宽度：
                                                                                            </td>
                                                                                            <td align="left">
                                                                                                <asp:TextBox ID="txtWidth" runat="server" Width="50" Height="12"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="right" style="height: 40px;">
                                                                                                高度：
                                                                                            </td>
                                                                                            <td align="left">
                                                                                                <asp:TextBox ID="txtHeight" runat="server" Width="50" Height="12"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="center" style="height: 40px;" colspan="2">
                                                                                                <asp:ImageButton ID="ibtnCancel" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                                                    Width="63" OnClick="ibtnCancel_Click" />
                                                                                                &nbsp;<asp:ImageButton ID="ibtnOk" runat="server" ImageUrl="~/Images/btn/btn_Ok.gif"
                                                                                                    Width="63" OnClick="ibtnOk_Click" />&nbsp;
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>--%>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="padding: 2px; text-align: center;">
                                                                        <div style="margin-left: 0px; margin-top: 3px; width: 100%; height: 334px; overflow-x: auto;
                                                                            overflow-y: auto;">
                                                                            <asp:GridView ID="GV" runat="server" Width="100%" BorderWidth="1px" BorderColor="#B5D6E6"
                                                                                CellPadding="0" CellSpacing="0" OnRowDataBound="GV_RowDataBound">
                                                                                <HeaderStyle HorizontalAlign="Center" CssClass="gvHeader" Font-Bold="true" Height="20px" />
                                                                                <RowStyle CssClass="gridviewRow" HorizontalAlign="Center" />
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                            <td style="background-image: url(../Images/tab_15.gif); width: 8px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="background-image: url(../Images/tab_19.gif); height: 35px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="width: 12px; height: 35px;">
                                <img src="../Images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td width="16">
                                <img src="../Images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
